package com.qk.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("customer")
public class Customer {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("phone")
    private String phone;
    @TableField("channel")
    private Integer channel;
    @TableField("name")
    private String name;
    @TableField("gender")
    private Integer gender;
    @TableField("age")
    private Integer age;
    @TableField("wechat")
    private String wechat;
    @TableField("qq")
    private String qq;
    @TableField("degree")
    private Integer degree;
    @TableField("job_status")
    private Integer jobStatus;
    @TableField("subject")
    private Integer subject;
    @TableField("course_id")
    private Integer courseId;
    @TableField("business_id")
    private Integer businessId;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;
    // 用于接收关联查询中的课程名称
    @TableField(exist = false)
    private String courseName;
    
    public Integer getJobStatus() {
        return jobStatus;
    }
    
    public void setJobStatus(Integer jobStatus) {
        this.jobStatus = jobStatus;
    }
}